package com.teamall.web.main.db.dao.mapper;

import com.teamall.web.main.db.arg.CodeStatVillageArg;
import com.teamall.web.main.db.po.CodeStatVillagePO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ICodeStatVillageMapper {
    
    List<Integer> countByArg(CodeStatVillageArg arg);

    List<CodeStatVillagePO> selectByArg(CodeStatVillageArg arg);

    CodeStatVillagePO selectByPrimaryKey(Integer id);

    List<CodeStatVillagePO> selectByArgAndPage(CodeStatVillageArg arg, RowBounds rowBound);

    int insert(CodeStatVillagePO record);

    int insertSelective(CodeStatVillagePO record);

    int insertBatch(@Param("list") List<CodeStatVillagePO> records);

    int updateByArgSelective(@Param("record") CodeStatVillagePO record,
            @Param("arg") CodeStatVillageArg arg);

    int updateByArg(@Param("record") CodeStatVillagePO record,
            @Param("arg") CodeStatVillageArg arg);

    int updateByPrimaryKeySelective(CodeStatVillagePO record);

    int updateByPrimaryKey(CodeStatVillagePO record);
    
    int deleteByArg(CodeStatVillageArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
}